//
//  PlantTool.h
//  植物管理
//
//  Created by liujianlong on 2022/11/22.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface PlantTool : NSObject
/// 找
+ (void)find:(nullable void(^) (NSMutableArray <Plant*>*result))block;


/// 找文件夹里面的笔记
+ (NSInteger)count:(NSInteger)stamp complete:(nullable void(^) (NSMutableArray <Plant*>*result))block;

/// 找到收藏的笔记，和 文件夹
+ (void)findFavorite:(nullable void(^) (NSMutableArray <Plant*>*result))block;

/// 找到移到废纸篓的笔记，和 文件夹
+ (void)findDelete:(nullable void(^) (NSMutableArray <Plant*>*result))block;

/// 更新笔记，和文件夹里面的笔记
+ (void)update:(Plant *)Plant complete:(nullable void(^) (BOOL success))block;

/// 搜索笔记
+ (void)search:(NSString *)text complete:(nullable void(^) (NSMutableArray <Plant*>*result))block;

/// 恢复笔记，和文件夹
+ (void)recover:(NSMutableArray<Plant*>*)array complete:(nullable void(^) (BOOL success))block;

/// 删除
+ (void)delete:(Plant*)model complete:(nullable void(^) (BOOL success))block;

/// 从文件夹导出
+ (void)moveOutPlant:(Plant*)Plant complete:(nullable void(^) (BOOL success))block;
@end

NS_ASSUME_NONNULL_END
